<template>
	<view>{{num1}}</view>
	<view>{{num2}}</view>
	<view>{{test}}</view>
	<view>{{arr[0]}}</view>
	<view>{{objc}}</view>
</template>

<script setup>
import { ref } from 'vue';	
let num1 = 6;
let num2 = ref(2)
setInterval(()=>{
	num2.value++;
	console.log(num2.value)
},1000)

let test = ref("鲜虾米")

let arr = ref([1,2,3,4,5])
let objc = ref({name:"xiaowen",age:34})
objc.value.name = "李四"
// let number1 = 6;
// setInterval(()=>{
// 	number1++;
// 	console.log(number1)
// },1000)

</script>

<style>
</style>